using System;
using SBCommon.Data;
using SBCommon.Validation;

namespace SecurityModule.Entity
{
	[Table("[SEC_UserGroup]")]
    public class UserGroup
    {
        int _usergroup_id;
        [Column]
        [Validator(Required = true)]
        public int usergroup_id
        {
            get { return _usergroup_id; }
            set { _usergroup_id = value; }
        }
        
        string _usergroup_name;
        [Column]
        [Validator(MaxLength = 50 , Required = true)]
        public string usergroup_name
        {
            get { return _usergroup_name; }
            set { _usergroup_name = value; }
        }
        
        int _parent_id;
        [Column]
        [Validator(Required = true)]
        public int parent_id
        {
            get { return _parent_id; }
            set { _parent_id = value; }
        }
        
    }
}

